<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="cn.hs.blog.article.module.Article"%>
<%@ page import="cn.hs.blog.common.ApplicationCommon"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=ApplicationCommon.getCssServer()%>adminStyle.css"
	type="text/css" rel="stylesheet" />


<title>海水黑板报 - 一半是海水的博客网志</title>
</head>
<body id="body" bgcolor="#ffffff">
<link
	href="<%=ApplicationCommon.getCssServer()%>flexigrid\flexigrid.css"
	type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" media="screen" href="/jqGrid-3.2/themes/basic/grid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/jqGrid-3.2/themes/jqModal.css" />

<script src="<%=ApplicationCommon.getJsServer()%>jquery.js"></script>
<script src="<%=ApplicationCommon.getJsServer()%>flexigrid.js"></script>

 
<script src="/jqGrid-3.2/jquery.jqGrid.js" type="text/javascript"></script>
<script src="/jqGrid-3.2/js/jqModal.js" type="text/javascript"></script> 
<script src="/jqGrid-3.2/js/jqDnR.js" type="text/javascript"></script>

<table id="list" class="scroll"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
<script type="text/javascript"> 

jQuery(document).ready(function(){
	jQuery("#list").jqGrid({
		 url:'/blog/article/Article.do?method=getArticles', 
		 datatype: 'xml', 
		 mtype: 'GET',
		 colNames:['id','title', 'author','date'],
		 colModel :[ {name:'id', index:'id', width:55, sorttype:'int'},
		 	   		 {name:'title', index:'title', width:90},
		 	   		 {name:'author', index:'author', width:80, align:'right'}, 
		 	   		 {name:'date', index:'date', width:80, align:'right', sorttype:'date', datefmt:'Y-m-d'}], 
	   	 pager: jQuery('#pager'), 
		 rowNum:10, 
		 viewrecords: true, 
		 imgpath: '/jqGrid-3.2/themes/basic/images', 
		 caption: 'urlList' 
	});
}); 
</script>

</body>
</html>